package com.ruoyi.system.domain.equipment;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 设备保养执行对象 equipment_byzx
 *
 * @author ruoyi
 * @date 2023-04-13
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("equipment_byzx_history")
public class EquipmentByzxHistory implements Serializable {

private static final long serialVersionUID=1L;


        /** 设备保养执行主键id */
        @TableId(value = "byzx_id")
    private Long byzxId;

        /** 设备名称 */
        @ApiModelProperty(value = "设备名称")
    private String equipmentName;

    @ApiModelProperty(value = "设备id")
    private Long equipmentId;

        /** 设备类型 */
        @ApiModelProperty(value = "设备类型")
    private String equipmentType;

    /** 设备类型 */
    @ApiModelProperty(value = "设备类型名称")
    private String equipmentTypeName;

        /** 设备编码 */
        @ApiModelProperty(value = "设备编码")
    private String equipmentCode;

        /** 产线id */
        @ApiModelProperty(value = "产线id")
    private Long lineId;

        /** 产线名称 */
        @ApiModelProperty(value = "产线名称")
    private String lineName;

        /** 计划执行日期 */
        @ApiModelProperty(value = "计划执行日期" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date planDate;

        /** 保养类型 */
        @ApiModelProperty(value = "保养类型")
    private String byType;

        /** 保养内容 */
        @ApiModelProperty(value = "保养内容")
    private String byData;

        /** 保养详情 */
        @ApiModelProperty(value = "保养详情")
    private String byInfo;

        /** 保养时间 */
        @ApiModelProperty(value = "保养时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date byDate;

        /** 保养状态 0未保养1已保养 */
        @ApiModelProperty(value = "保养状态 0未保养1已保养")
    private Integer byStatus;

        /** 保养计划单号 */
        @ApiModelProperty(value = "保养计划单号")
    private String byNumber;

        /** 创建者 */
        private String createBy;

        /** 创建时间 */
        private Date createTime;

        /** 更新者 */
        private String updateBy;

        /** 更新时间 */
        private Date updateTime;

        /** 保养类型1保养2点检 */
        @ApiModelProperty(value = "保养类型1保养2点检")
    private Integer byLx;

    @ApiModelProperty(value = "图片地址")
    private String imgPath;

    /** 是否预警 0不预警1预警 */
    @ApiModelProperty(value = "是否预警 0不预警1预警")
    private Integer alertState;

    @ApiModelProperty(value = "下次保养时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date nextBydate;
}
